<div id="footer">
<div class="footcontent">
	<div id="foot">
	<? 
		$str='';
		foreach($arr_vice_menu as $key=>$val){
			$str.='<ul class="service"><h4>'.$val['name_'.$lang].'</h4>';
			// 创建账号/个人中心入口.  register or member center
			if($key==2){
				if($customer_id > 0) $str.='<li><a href="member.html">'.WEB_MEMBER_CENTER.'</a></li>';
				else $str.='<li><a href="register.html">'.WEB_CREATE_ACCOUNT.'</a></li>';
			}
			foreach($val['menu'] as $row){
				$target=''; if($row['category_id']==4) $target=' target="_blank" ';
				$str.='<li><a href="'.$row['link'].'" '.$target.'>'.$row['name'].'</a></li>';
			}
			$str.='</ul>';
		}
			echo $str;
	 ?>
	<div class="clear"></div>
	</div>
</div>
<div class="footcontent">
	<div id="foot">
		<? if($index){
			$str=''; $k=0;
			foreach ($arr_link as $val) {
				if($k)$str.='|';
				$str.='<a href="'.$val['link'].'" target="_blank">'.$val['name'].'</a>';
				$k++;
			}
		 ?>
		<div id="links">
			<?=WEB_PARTNER_LINK?>: <?=$str?>
		</div>
		<? } ?>
		<div class="copyright">
			<?=WEB_COPYRIGHT?> &copy; <? echo date('Y').' &nbsp; '.$config['SITE_COMPANY_'.strtoupper($lang)] ?> &nbsp; <?=WEB_ALL_RIGHTS_RESERVED?> &nbsp; <? if($lang_id==2) echo '<a href="http://www.miitbeian.gov.cn/" target="_blank">'.SITE_ICP.'</a>'; ?>
		</div>
	</div>
</div>
<?if(!empty($ad_footer)){?><div class="tcenter"><img src="upload/<?=$ad_footer['pic']?>" /></div><?}?>
</div><!--end footer-->
<?	// tracking code
echo TRACKING_CODE;
if(!$gear ) echo '<div class="tcenter">'.memory_get_usage().'</div>';
?>